<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>ad</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="https://cdn.bootcss.com/bootstrap-table/1.12.1/bootstrap-table.css">
    <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap-table/1.12.1/bootstrap-table.js"></script>
    <link rel="stylesheet" href="ad.css">
    <script src="ad.js"></script>
    <script src="adsearch.js"></script>
</head>

<body>
    <div class="series">
        <!-- 面包屑 -->
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
                <li class="breadcrumb-item active"><a href="#">广告管理</a></li>
            </ol>
        </nav>
    </div>
    <!-- 内容 -->
    <div class="contents">
        <!-- 搜索栏 -->
        <div class="search">
            <div class="check">
                <form class="bs-example bs-example-form" role="form">
                    <div class="input-group">
                        <span class="input-group-addon">广告位类型</span>
                        <select name="dealer_id" id="bannerTypeID" class="selectpicker show-tick form-control" data-width="98%" data-first-option="false"
                            title='广告图片导航类型' required data-live-search="true">
                            <option value="1">主界面广告位</option>
                            <option value="2">油耗车辆页表页广告位</option>
                            <option value="3">保养车辆列表页广告位</option>
                            <option value="4">商户端主页广告位</option>
                        </select>
                    </div>
                    <!-- 搜索 -->
                    <button type="button" class="btn btn-warning btn-sm" onclick="searchad()">
                        搜索 <span class="glyphicon glyphicon-search"></span>
                    </button>
                </form>
            </div>
            <table class="table table-bordered table-hover" id="adtable">
            </table>
        </div>
        <!-- 编辑版本 -->
        <div class="editad">
            <form role="form">
                <div class="form-group">
                    <span>*</span><label for="usr"> 标 题 : (20个英文字符以内)</label>
                    <input type="text" class="form-control" id="editadtitle" placeholder="添加为空值，不获取">
                    <!-- <span>(20个英文字符以内)</span> -->
                    <label for="usr"> 链 接 : (20个英文字符以内)</label>
                    <input type="text" class="form-control" id="editdturl" placeholder="添加为空值，不获取">
                    <label for="usr"> 说 明 : (20个英文字符以内)</label>
                    <input type="text" class="form-control" id="editadcontent" placeholder="添加为空值，不获取">
                    <span id="Initials">*</span><label for="usr"> 广告图片导航类型 :</label>
                    <select name="dealer_id" id="editadimage" class="selectpicker show-tick form-control" data-width="98%" data-first-option="false"
                        title='广告图片导航类型' required data-live-search="true">
                        <option value="1">主界面广告位</option>
                        <option value="2">油耗车辆页表页广告位</option>
                        <option value="3">保养车辆列表页广告位</option>
                        <option value="4">商户端主页广告位</option>
                    </select>
                    <!-- 隐藏id -->
                    <input type="hidden" id="bannerid">
                    <button type="button" class="btn btn-default" onclick="editsaveaD()">保存</button>
                    <button type="button" class="btn btn-default" onclick="backad()">返回</button>
                </div>
            </form>
        </div>
        <!-- 隐藏更换图片 -->
        <div class="updateadimage">
                <div class="form-group">
                        <label for="exampleFormControlFile1">更换图片</label>
                        <input type="file" class="form-control-file filecss" id="exampleFormControlFile1">
                </div> 
                <button type="button" class="btn btn-default" onclick="updateadsaveImage()">保存</button>
                <button type="button" class="btn btn-default" onclick="backad()">返回</button> 
            
                <!-- 隐藏id -->
                <input type="hidden" id="bannerid">     
        </div>
    <!-- 模态框 -->
    <!-- 模态框（Modal） -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        admin.52carlife.com显示
                    </h4>
                </div>
                <div class="modal-body">
                    <span id="modal-input">确认停用</span>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                    </button>
                    <button id="btn_ok" type="button" class="btn btn-primary">
                        提交更改
                    </button>
                </div>
            </div>
        </div>
    </div>
</body>

</html>